package com.zjh.ems.controller;


import com.zjh.ems.domain.po.Employees;
import com.zjh.ems.service.impl.EmployeesServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zjh
 * @since 2025-10-16
 */
@RestController
@RequestMapping("/employees")
@RequiredArgsConstructor
public class EmployeesController {
    private final EmployeesServiceImpl employeesService;
    @GetMapping("/list")
    public List<Employees> list(){
        return employeesService.list();
    }
}
